from django.urls import path
from app_article import views

app_name = 'article'
urlpatterns = [
    path('<slug:username>/detail/<int:pk>/', views.article_detail, name='detail'),
    path('set/like', views.edit_article_like, name='edit_article_like'),
    path('comment/', views.add_comment, name='comment'),
    path('<slug:username>/add/', views.AddArticle.as_view(), name='add'),
    path('<slug:username>/del/<int:pk>', views.delArticle, name='del'),
    path('<slug:username>/edit/<int:pk>', views.EditArticle.as_view(), name='edit'),
    path('article_img/', views.articleImg, name='articleImg')
]

